/**
 * @param {number[][]} mat
 * @param {number} threshold
 * @return {number}
 */
 var maxSideLength = function(mat, threshold) {
let row =mat.length,col=mat[0].length
let maxEdge = Math.min(row,col)
for (let i = 0; i < mat.length; i++) {
 
  
}
};